import React from 'react';
import { useRequest } from '@umijs/hooks';
import { query } from '@/services/auth';
import { PageHeaderWrapper } from '@ant-design/pro-layout';
import { Card, Button } from 'antd';
function MemberManage () {



    // const { loading, run } = useRequest( handleQuery );
    const { loading, run } = useRequest( query, {
        manual: true,

        onSuccess: ( result, params ) => {
            if ( result )
            {
                console.log( result.data );
                console.log( params );
            }
        }
    } );
    return (
        <div>
            <PageHeaderWrapper>
                <Card>

                    <Button onClick={ () => run( '' ) } loading={ loading }>
                        请求数据
                        </Button>
                </Card>
            </PageHeaderWrapper>

        </div>
    );
}

export default MemberManage;